package cn.itsource.org.service;

import cn.itsource.basic.query.BaseQuery;
import cn.itsource.basic.query.PageList;
import cn.itsource.org.domain.Department;
import com.github.pagehelper.PageInfo;

/**
 * 部门的业务层
 */
public interface IDepartmentService {

    //分页查询
    PageList<Department> getAllByPage(BaseQuery query);

    //删除
    void delete(Long id);

    //新增或修改
    void saveOrUpdate(Department department);
}
